using MediatR;
using S.M.SmartMedical.Domain.DTOs;
using S.M.SmartMedical.ErrorCode;

namespace S.M.SmartMedical.API.Write.Application.Command
{
    /// <summary>
    /// 用户注册命令
    /// </summary>
    public class RegisterUserCommand : IRequest<APIResult<UserInfoDto>>
    {
        /// <summary>
        /// 用户注册信息
        /// </summary>
        public UserRegisterDto UserRegister { get; set; } = new();

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="userRegister">用户注册信息</param>
        public RegisterUserCommand(UserRegisterDto userRegister)
        {
            UserRegister = userRegister;
        }
    }
}